<template>
  <div class="news-banner">
    <div class="banner-content">
      <div class="banner-image">
        <div class="banner-placeholder">
          <h2>WORLD OF WARCRAFT</h2>
          <p>魔兽世界</p>
        </div>
        <div class="ad-label">广告</div>
      </div>
    </div>
  </div>
</template>

<script setup>
// 组件逻辑
</script>

<style scoped>
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.news-banner {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.banner-content {
  width: 100%;
  height: 100%;
}

.banner-image {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  overflow: hidden;
}

.banner-placeholder {
  text-align: center;
  z-index: 1;
  max-width: 80%;
}

.banner-placeholder h2 {
  font-size: 6rem;
  margin: 0 0 2rem 0;
  font-weight: bold;
  letter-spacing: 4px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.banner-placeholder p {
  font-size: 2.5rem;
  margin: 0;
  opacity: 0.9;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.ad-label {
  position: absolute;
  bottom: 30px;
  left: 30px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 16px;
  z-index: 2;
}

/* 响应式设计 - 大屏幕 */
@media (max-width: 1440px) {
  .banner-placeholder h2 {
    font-size: 5rem;
  }
  
  .banner-placeholder p {
    font-size: 2rem;
  }
}

/* 响应式设计 - 中等屏幕 */
@media (max-width: 1024px) {
  .banner-placeholder h2 {
    font-size: 4rem;
  }
  
  .banner-placeholder p {
    font-size: 1.8rem;
  }
}

/* 响应式设计 - 平板 */
@media (max-width: 768px) {
  .banner-placeholder h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
  }
  
  .banner-placeholder p {
    font-size: 1.5rem;
  }
  
  .ad-label {
    padding: 6px 12px;
    font-size: 14px;
    bottom: 20px;
    left: 20px;
  }
}

/* 响应式设计 - 手机 */
@media (max-width: 480px) {
  .banner-placeholder h2 {
    font-size: 2rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
  }
  
  .banner-placeholder p {
    font-size: 1.2rem;
  }
  
  .ad-label {
    padding: 4px 8px;
    font-size: 12px;
    bottom: 15px;
    left: 15px;
  }
}
</style>

